<!--
 * @Description:
 * @Author: 
 * @Date: 2023-08-16 09:18:51
 * @LastEditor: 
 * @LastEditTime: 2023-08-16 09:18:52
 
-->


<template>
	<view class="page_content">
		<!-- #ifndef MP-TOUTIAO -->
		<view class="head_content">
			<CustomNavbar :title="navbarTitle"></CustomNavbar>
		</view>
		<!-- #endif -->
	
		<view class="main_content">
			<u-parse :content="info.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				options: '',
				info: ''
			}
		},
		onLoad(options) {
			if(options && options.d) {
				this.options = JSON.parse(decodeURIComponent(options.d))
				this.navbarTitle = this.options.title
				this.getRichText()
			}
		},
		methods: {
			getRichText() {
				this.$request('common.richtext', {
					id: this.options.id
				}).then(res => {
					if(res.code === 1) {
						this.info = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main_content {
		overflow-y: auto;
		padding: 40rpx;
	}
</style>
